package com.goldgov.route.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.goldgov.route.service.ProjectRouteRule;
import com.goldgov.route.service.RouteRule;
import com.goldgov.route.service.ServiceVersion;

/**
 * Route规则数据接口
 * @author LiuHG
 */
@Mapper
public interface RouteRuleDao {
	
	void addRouteRule(RouteRule routeRule);
	
	void updateRouteRule(RouteRule routeRule);
	
	int deleteRouteRule(@Param("ids") String[] ids);
	
	RouteRule getRouteRule(String id);
	
	List<RouteRule> listRouteRule(@Param("excludeIDs") String[] excludeIDs);
	
//	void addProjectRoute(@Param("projectID") String projectID,@Param("routeRuleIDs") String[] routeRuleIDs);
        
	void deleteProjectRoute(@Param("ids") String[] ids);
	
	List<RouteRule> listRouteRuleByPorject(String projectID);
	
	List<ServiceVersion> listVersion(@Param("ruleID")  String ruleID);
	
	void addProjectRoute(@Param("rules") ProjectRouteRule[] rules);

	void deleteProjectRouteRule(@Param("projectID") String projectID);
}